﻿using System;
using AccessControl.Contracts.Models;

namespace AccessControl.Data.Models
{
    /// <summary>
    /// Reprenets sensor in the system
    /// </summary>
    /// <remarks></remarks>
    public class Sensor : RelatedDevice, ISensor
    {
        #region Fields

        SensorType _Type;

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>
        /// The type.
        /// </value>
        public SensorType Type
        {
            get { return _Type; }
            set
            {
                if (_Type != value)
                {
                    _Type = value;
                    NotifyPropertyChanged("Type");
                }
            }
        }

        #endregion
    }
}
